package design_patterns.observer;

public class HexaObserver extends Observer{
	public HexaObserver(Subject subject) {
		this.subject=subject;
		this.subject.attch(this);
	}

	@Override
	public void update() {
		System.out.println("十六进制观察者更新。。"+Integer.toHexString(this.subject.getState()));
	}
}
